<%@ Page Language="C#" MasterPageFile="~/iPhone.Master" AutoEventWireup="true" CodeBehind="ViewMessage.aspx.cs"
	Inherits="iPhOwa.Web.ViewMessage" Title="Untitled Page" EnableViewState="false"
	ValidateRequest="false" %>

<asp:Content ID="c" ContentPlaceHolderID="content" runat="server">
	<iwc:ClickablePanel runat="server" ID="backPanel" Visible="false" Style="padding: 2px;">
		<asp:Image runat="server" ID="folderImage" ImageUrl="~/Images/parent.gif" CssClass="middle" />
		Back to
		<asp:Label runat="server" ID="parentNameLabel" />
	</iwc:ClickablePanel>
	<hr class="divider" />
	<div style="padding: 2px;">
		<asp:HyperLink runat="server" ID="replyLink">
			<asp:Image runat="server" ID="replyImage" ImageUrl="~/Images/icon-msg-reply.gif"
				CssClass="middle" />
			Reply
		</asp:HyperLink>
		<asp:HyperLink runat="server" ID="replyAllLink">
			<asp:Image runat="server" ID="replyAllImage" ImageUrl="~/Images/replyall.gif" CssClass="middle" />
			Reply to All
		</asp:HyperLink>
		<asp:HyperLink runat="server" ID="forwardLink">
			<asp:Image runat="server" ID="forwardImage" ImageUrl="~/Images/icon-msg-forward.gif"
				CssClass="middle" />
			Forward
		</asp:HyperLink>
		<asp:LinkButton runat="server" ID="deleteLink" onclick="DeleteLink_Click">
			<asp:Image runat="server" ID="deleteImage" ImageUrl="~/Images/delete.gif" CssClass="middle" />
			Delete
		</asp:LinkButton>
	</div>
	<hr class="divider" />
	<table cellpadding="0" cellspacing="0">
		<tr>
			<th>
				From:
			</th>
			<td>
				<asp:Label ID="fromLabel" runat="server" />
			</td>
		</tr>
		<tr>
			<th>
				To:
			</th>
			<td>
				<asp:Label ID="toLabel" runat="server" />
			</td>
		</tr>
		<tr runat="server" id="ccRow" visible="false">
			<th>
				CC:
			</th>
			<td>
				<asp:Label ID="ccLabel" runat="server" />
			</td>
		</tr>
		<tr>
			<th>
				Recieved:
			</th>
			<td>
				<asp:Label ID="receivedLabel" runat="server" />
			</td>
		</tr>
		<tr>
			<th>
				Subject:
			</th>
			<td>
				<asp:Image runat="server" ID="highPriorityImage" ImageUrl="~/Images/imp-high.gif"
					CssClass="middle" Visible="false" />
				<asp:Image runat="server" ID="lowPriorityImage" ImageUrl="~/Images/imp-low.gif" Visible="false"
					CssClass="middle" />
				<asp:Image runat="server" ID="flaggedImage" ImageUrl="~/Images/icon-flag.gif" Visible="false"
					CssClass="middle" />
				<asp:Image runat="server" ID="completedImage" ImageUrl="~/Images/icon-flag-complete.gif"
					CssClass="middle" Visible="false" />
				<asp:Label ID="subjectLabel" runat="server" />
			</td>
		</tr>
		<tr runat="server" id="attachmentsRow" visible="false">
			<th>
				Attachments:
			</th>
			<td>
				<asp:DataList ID="attachmentsList" runat="server">
					<ItemTemplate>
						<asp:HyperLink runat="server" ID="attachmentLink" Target="_blank" NavigateUrl='<%# string.Concat("~/ViewAttachment.aspx?path=", HttpUtility.UrlEncode(Eval("Href").ToString())) %>'><%# Eval("AttachmentFileName") %></asp:HyperLink>
					</ItemTemplate>
				</asp:DataList>
			</td>
		</tr>
	</table>
	<hr class="divider" />
	<div>
		<asp:Label ID="bodyLabel" runat="server" />
	</div>
	<hr class="divider" />
</asp:Content>
